package com.wy.authority.mapper;

import com.wy.authority.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/11 13:48
 * @Description: 用户
 */
@Mapper
@Repository
public interface UserMapper {

    public SysUser getUser(String user_name);

    //分页查询
    List<SysUser> findpage(int page);

    //查询所有
    List<SysUser> find();

    //模糊查询
    List<SysUser> finds(SysUser user);

    //增加用户
    int insert(SysUser user);

    //删除用户
    int delete(int user_id);

    //修改用户
    int update(SysUser user);

    //核对账号密码
    SysUser login(SysUser sysUser);

    //读取配置
    SysUser sysuser(String user_id);
}
